-- CALC_TREE_HOUSE_ITEM_ATTACK

-- 计算树屋物品攻击
-- @param args         使用参数
return function(args)
    local attack = 0;
    if args["damage"] then
        attack = args["damage"];
    elseif args["probability_damage"] then
        attack = args["probability_damage"][1];
    elseif args["all_damage"] then
        attack = args["all_damage"][1];
    elseif args["area_damage"] then
        attack = args["area_damage"][1];
    elseif args["row_damage"] then
        attack = args["row_damage"][1];
    elseif args["addition_base_damage"] then
        attack = args["addition_base_damage"][1];
    elseif args["kill_obain"] then
        attack = args["kill_obain"][1];
    elseif args["soul_damage"] then
        attack = args["soul_damage"][1];
    end

    return attack;
end